﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CID.Support.Exceptions;

namespace CID.Domain.Exceptions
{
    [Serializable]
    class DuplicateChildException : DomainException
    {
        public DuplicateChildException(object parent, object child) 
            : base(String.Format("{0} object already has assigned a {1} child with the same key", parent.GetType().Name, child.GetType().Name)) { }
    }
}
